<template>
    <image :src="imgUrl"/>
</template>

<script>
import Constants from '@/common/constants.js';
export default {
    name: "BpmImageApp",
    data(){
        return{
            imgUrl: "",
            defId:''
        }
    },
    onLoad(params){
        this.defId = params.defId
        this.init()
    },
    methods:{
        init(){
            let realUrl = ''
            realUrl=Constants.APP_BASE_URL;
            this.imgUrl = realUrl + '/api-bpm/bpm/core/bpmDef/getImageByDefId/'+this.defId;
        },
    }
}
</script>

<style scoped>

</style>
